<template>
  <div>
    <el-tooltip content="Click the button will cancel" placement="top">
      <el-button
        type="primary"
        icon="el-icon-edit"
        size="mini"
        @click="handleFail"
      >不通过
      </el-button>
    </el-tooltip>
    <el-tooltip content="Click the button will submit" placement="top">
      <el-button
        type="success"
        icon="el-icon-first-aid-kit"
        size="mini"
        @click="handlePass"
      >通过
      </el-button>
    </el-tooltip>
  </div>
</template>

<script>
export default {
  name: 'OperationButton',
  methods: {
    handleFail() {
      this.$emit('fail')
    },
    handlePass() {
      this.$emit('pass')
    }
  }
}
</script>

<style scoped>

</style>
